import processing.core.PApplet;
import processing.core.PImage;

public class ProjectionSketch extends PApplet {
	private int					width	= 1280;
	private int					height	= 960;
	private BlendedViewSketch	blend	= null;
	private PImage				myImage	= null;

	public void init(BlendedViewSketch toProjectorScreen) {
		super.init();
		blend = toProjectorScreen;
	}

	@Override
	public void setup() {
		System.out.println("ProjectionSketch started.");
		size(width, height, P2D);
		frameRate(120);
		background(0);
		noCursor();
	}

	@Override
	public void draw() {
		// blend.getPImage(myImage);
		myImage = blend.getPImage();
		myImage.resize(1280, 960);
		image(myImage, 0, 0);
	}

	@Override
	public void mousePressed() {
		System.out.println("mouse pressed.");
	}

	@Override
	public void mouseDragged() {
	}

	@Override
	public void mouseReleased() {
	}

}
